namespace EyeOpen.ExceptionLogging.Windows
{
	using System;
	using System.Windows.Forms;

	using EyeOpen.Logging;

	internal class ListBoxLogger : ILogger
	{
		private readonly ListBox listBox;

		public ListBoxLogger(ListBox listBox)
		{
			this.listBox = listBox;
		}

		public void Debug(Exception exception)
		{
			listBox.Items.Insert(0, exception.Message);
		}
	}
}